import request from '@/utils/requestH2'

// 可发起验收列表查询
export function getAcceptableListApi() {
  return request({
    url: '/checkAccept/checkAccept/selCanCheckAcceptList',
    method: 'GET'
  })
}

// 发起验收
export function startAcceptanceApi(data) {
  return request({
    url: `/checkAccept/checkAccept/addCheckAccept`,
    method: "POST",
    data,
  });
}

// 验收列表查询
export function selCheckAcceptListApi(params) {
  return request({
    url: '/checkAccept/checkAccept/selCheckAcceptList',
    method: 'GET',
    params
  })
}

// 验收组验收
export function updateAcceptanceTeamApi(data) {
  return request({
    url: '/checkAccept/acceptanceTeam/updateAcceptanceTeam',
    method: 'POST',
    data
  })
}

// 仓管验收
export function updateItemManageApi(data) {
  return request({
    url: '/checkAccept/itemManage/updateItemManage',
    method: 'POST',
    data
  })
}

// 监理验收
export function updateSupervisorApi(data) {
  return request({
    url: '/checkAccept/supervisor/updateSupervisor',
    method: 'POST',
    data
  })
}
